﻿using UnityEngine;
using System.Collections;

public class Element {
	
	private string _sName { get; set; }
	private int _iQuantity { get; set; }
	private string _sImageUp { get; set; }
	private string _sImageDown { get; set; }
	
	public string Name
	{
		get{ return _sName; }
		set{ _sName = value; }
	}
	public int Quantity
	{
		get{ return _iQuantity; }
		private set{ _iQuantity = value; }
	}
	public string ImageUp
	{
		get{ return _sImageUp;}
		set { _sImageUp = value;}
	}
	public string ImageDown
	{
		get { return _sImageDown; }
		set { _sImageDown = value; }
	}

	public void Add(int iAmount)
	{
		Quantity += iAmount;
	}
	public void Use(int iAmount)
	{
		if(iAmount <= Quantity)
			Quantity -= iAmount;
	}
}
